<template>
  <a-modal v-model:visible="isshow" @ok="handleOk" @cancel="handleCancel" ref="modalRef">
    <slot></slot>
  </a-modal>
</template>

<script setup>
import {ref} from "vue";

const isshow = ref(false)
const emit = defineEmits(['determine'])
const handleOk = () => {
  emit('determine')
}
const handleCancel = () => {
  close()
}
const modalRef = ref(null)
const open = () => {
  isshow.value = true
}
const close = () => {
  isshow.value = false
}

defineExpose({
  open,
  close,
})
</script>

<style scoped>

</style>